package design2.command.example2;

public class TurnOffThread implements Runnable{
    Receiver receiver;
    public TurnOffThread(Receiver receiver) {
        this.receiver=receiver;
    }

    @Override
    public void run() {
        receiver.turnOFF();
    }
}
